package  
{
	/**
	 * ...
	 * @author DarkGoodWIN
	 */
	import flash.geom.ColorTransform;
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	
	public class TPictureControl extends TControl
	{
        protected var OrgTrans: ColorTransform;

		public function TPictureControl(c: Class, Parent: TControl = null, x : Number = 0, y : Number = 0, anImg: DisplayObject = null) 
		{
		  var Pic: MovieClip = new MovieClip;
		  var Img: DisplayObject;
		  if (anImg != null)
		  {
			Img = Pic.addChild(anImg)
		  }
		  else if (c != null)
		  {
		    var d: DisplayObject = new c();
		    Img = Pic.addChild(d);
		  }
		
		  OrgTrans = Pic.transform.colorTransform;
		  super (Pic, Parent, x, y);			
		}
		
	}

}